﻿@{
    ViewBag.Title = "Subscribe";
}

<h2>Subscribe</h2>

@using(Html.BeginForm("Subscribe", "Messages"))
{
    <text>Messages to :</text><label>@ViewBag.ToAddress</label>
    <text>will be delivered to :</text>
    <input type="hidden" name="ToAddress" value="@Html.Encode(ViewBag.ToAddress)"/>
    <input type="email" name="EmailAddress" value="@ViewBag.SubscriberEmail" size="50"/>
    
    <br/>
    <input type="submit" name="submit" value="Subscribe"/>
}